/*
* 命名空间: LogicModel.DataModel
*
* 功 能： SysButton实体类
*
* 类 名： SysButtonEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/02/26 17:33:03 罗维     创建
*
* Copyright (c) 2016 Lir Corporation. All rights reserved.
*/

namespace LogicModel.DataModel
{
    using System;
    using ToolsModel;

    /// <summary>
    /// 按钮信息表
    /// </summary>
    [Serializable]
    [TableInfo(TableName = "SysButton")]
    public class SysButtonEntity
    {

        /// <summary>
        /// 唯一编码
        /// </summary>
        [FieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = false,DefaultValue = "")]
        public String Code
        {
            get; set;
        }

        /// <summary>
        /// 按钮名称
        /// </summary>
        [FieldInfo(ByteLength = 40,DataLength = 20,DecimalDigits = 0,ColumnName = "sName",Required = false,DefaultValue = "")]
        public String Name
        {
            get; set;
        }

        /// <summary>
        /// 菜单icon
        /// </summary>
        [FieldInfo(ByteLength = 200,DataLength = 100,DecimalDigits = 0,ColumnName = "sIcon",Required = true,DefaultValue = "")]
        public String Icon
        {
            get; set;
        }

        /// <summary>
        /// 方法名称,直接放置按鈕的ID
        /// </summary>
        [FieldInfo(ByteLength = 200,DataLength = 100,DecimalDigits = 0,ColumnName = "sMethod",Required = true,DefaultValue = "")]
        public String Method
        {
            get; set;
        }

        /// <summary>
        /// 按钮html源码
        /// </summary>
        [FieldInfo(ByteLength = 4000,DataLength = 2000,DecimalDigits = 0,ColumnName = "sScript",Required = false,DefaultValue = "")]
        public String Script
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [FieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iSort",Required = false,DefaultValue = "")]
        public Int32? Sort
        {
            get; set;
        }
    }
}
